<?php

namespace controllers;

use libs\Registry as Registry;

class uslugi_controller extends \libs\controller{
    
    private $_tabela = "strony";
    private $_newsid = 4;
    
    /**
     * @route=(/uslugi)
     */
    public function index() 
    { 
        $db = Registry::get('database');
        
        $news = $db->get_where($this->_tabela,array('id'=>$this->_newsid));
        
        return array('news'=>$news[0]);
        
    }
   
    
    
}

?>
